/**
 * Created by dell on 2017/12/11.
 */
$(document).ready(function () {
    dian();
});

function  dian() {
    $("#btn1").click(function () {
        var $div = document.getElementsByTagName('div');
        $div[0].innerHTML="Hello JavaScript";
        $div[0].style.color='red';
        // $div.style.color="red";
        //$("div").html("您好！Welcom to you ").css("color","red");
        // var $div=$("div");
        // var div=$div[1];
        // div.style.color='red';
    });

}















